package cn.itcast.mq.config;

import org.junit.Test;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

@Component
public class RabbitConfig {
    @Bean
    Queue objectQueue(){
        return new Queue("object.queue");
    }
}
